GETPID
Section: MINTLIB LIBRARY FUNCTIONS
(3)
Updated: 3 March 1993
Index
Return to Main Contents
NAME
getpid, getprgp, getppid - get process, process group,
and parent process IDs
SYNOPSIS
#include <unistd.h>
int getpid(void);
int getprgp(void);
int getppid(void);
DESCRIPTION
getpid returns the process ID of the calling process.
getpgrp returns the process group ID of the calling process.
getppid returns the parent process ID of the calling process.
SEE ALSO
setpgrp(3),
Pgetpid(2),
Pgetpgrp(2),
Pgetppid(2)
NOTES
When MiNT is not active, the 16 most significant bits of the
basepage of the process are returned for getpid; 0 is returned
for getpgrp; the 16 most significant bits of the parents process'
basepage are returned for getppid.
It seems that the BSD UN*X version of getpgrp takes an argument.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- NOTES
-
This document was created by
man2html,
using the manual pages.
Time: 11:15:20 GMT, June 22, 2025